<template>
    <van-sticky>
        <van-nav-bar title="购物车" left-text="返回" left-arrow @click-left="onClickLeft" />
    </van-sticky>
    <div>

        <div>
            <van-checkbox v-model="checked"></van-checkbox>
        </div>

        <div>
            <van-card num="2" price="30.50" desc="描述信息" title="商品标题"
                thumb="https://fastly.jsdelivr.net/npm/@vant/assets/ipad.jpeg">
                <template #footer>
                    <van-button size="mini">-</van-button>
                    <van-button size="mini">+</van-button>
                </template>
            </van-card>

        </div>
        <van-submit-bar :price="3050" button-text="提交订单" @submit="onSubmit">
            <van-checkbox v-model="checked">全选</van-checkbox>
        </van-submit-bar>

    </div>
</template>

<script setup>
import { ref } from 'vue';
import { useRouter } from 'vue-router';
const router = new useRouter();
const checked=ref();
const onSubmit=()=>{
    router.push('/card')
}
</script>

<style lang="scss" scoped>

</style>